package com.ruoyi.supermarket.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 order
 *
 * @author wqr
 * @date 2024-07-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long oid;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String oname;

    /** 商品*/
    @Excel(name = "商品")
    private Commodity commodity;

    /** 货物外键id */
    @Excel(name = "货物外键id")
    private Goods goods;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date otime;


    /** 订单数量 */
    @Excel(name = "订单数量")
    private Long ocount;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private Long ototal;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String ostatus;

    @Excel(name = "售出管理订单总数")
    private Long total_orders;

    @Excel(name = "总数量")
    private Long total_order_count;

    @Excel(name = "总金额")
    private Long total_order_amount;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Long deleted;

    private Integer cid;



}
